From ad523021a1a35d12156cf5749ade525695e1c768 Mon Sep 17 00:00:00 2001 From: Ximin Luo Date: Wed, 6 Jun 2018 21:42:39 -0700 Subject: [PATCH] Add link to bug on cross-linker auto-detection --- debian/rules | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/rules b/debian/rules index 3fa7ce663..8f84caf78 100755 --- a/debian/rules +++ b/debian/rules @@ -8,6 +8,7 @@ include /usr/share/rustc/architecture.mk # For cross-compiling; perhaps we should add this to dh-cargo or debcargo export PKG_CONFIG = $(DEB_HOST_GNU_TYPE)-pkg-config export PKG_CONFIG_ALLOW_CROSS = 1 +# Needed because of https://github.com/rust-lang/cargo/issues/4133 RUSTFLAGS += -C linker=$(DEB_HOST_GNU_TYPE)-gcc # TODO: we cannot enable this until dh_shlibdeps works correctly; atm we get: # dpkg-shlibdeps: warning: can't extract name and version from library name 'libstd-XXXXXXXX.so' -- 2.30.2